package com.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@ComponentScan({"com.service","com.action","com.config"})
@MapperScan("com.dao")
@EnableCaching
@EnableScheduling
@ImportResource("classpath:spring-transaction.xml")
public class MainBoot {

    public static void main(String[] args) {
        SpringApplication.run(MainBoot.class);
    }
}
